import { create_winload } from '../../../../../../../global/win_load';
// eslint-disable-next-line no-unused-vars
import { uni_load } from '../../../../../../../global/win_load/Classes/cla_uni_load';
import {
  props_win_load_ns_tag,
  spacename_win_load_ns_tag,
} from '../DataDefine/sourceData';
import { ns_tag_staticNode } from './cla_ns_tag_staticNode';

const ns_tag_dataManaTag = 'ns_tag_dataMana';

/**
 * @type {uni_load}
 */
const winload_ns_tag = create_winload(spacename_win_load_ns_tag);

class ns_tag_dataMana extends ns_tag_staticNode {
  get [Symbol.toStringTag]() {
    return ns_tag_dataManaTag;
  }

  constructor() {
    super();
    this.nt_key_el.innerHTML = this.#get_floatEl_id();
    this.nat_for_page_el.innerHTML = this.#get_floatEl_for_page();
  }

  /**
   * 返回 浮动元素 的 id
   * @returns {string}
   */
  #get_floatEl_id() {
    return winload_ns_tag.get_winload_key(props_win_load_ns_tag.floatEl_id);
  }

  /**
   * 返回 浮动元素 的 创建 页面
   * @returns {string}
   */
  #get_floatEl_for_page() {
    return winload_ns_tag.get_winload_key(props_win_load_ns_tag.for_page);
  }
}

export { ns_tag_dataMana };
